package com.powernode.springboot;

import com.powernode.springboot.service.UserService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Springboot3002AopApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext applicationContext = SpringApplication.run(Springboot3002AopApplication.class, args);

		UserService userService = applicationContext.getBean(UserService.class);
		userService.save(111L,"jackson");
		userService.deleteById(111L);
		applicationContext.close();
	}

}
